using UnityEngine;

namespace Crosstales.UI
{
    // [Assembly-CSharp-firstpass.dll].Crosstales.UI.UIFocus
    public class UIFocus : MonoBehaviour
    {
        // Fields
        public string ManagerName;
        private Crosstales.UI.UIWindowManager manager;
        private UnityEngine.UI.Image image;
        private UnityEngine.Transform tf;
        
        // Methods
        private void Start()
        {
        
        }
        private void Awake()
        {
            this.tf = this.transform;
            this.manager = UnityEngine.GameObject.Find(name:  this.ManagerName).GetComponent<System.Object>();
            this.image = this.tf.Find(n:  -1610604591).GetComponent<System.Object>();
            throw new NullReferenceException();
        }
        public void OnPanelEnter()
        {
            Crosstales.UI.UIWindowManager val_5 = this.manager;
            if(val_5 != 0)
            {
                    val_5 = this.manager;
                val_5.ChangeState(active:  this.gameObject);
            }
            
            UnityEngine.Color val_3 = this.image.color;
            this.image.color = new UnityEngine.Color() {r = val_3.r, g = val_3.g, b = val_3.b, a = 255f};
            this.tf.SetAsLastSibling();
            this.tf.SetAsFirstSibling();
            this.tf.SetSiblingIndex(index:  0);
            int val_4 = this.tf.GetSiblingIndex();
        }
        public UIFocus()
        {
            this.ManagerName = -1610608879;
        }
    
    }

}
